package com.linzp.bishe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户编号	id
 * 姓名	user_name
 * 性别	sex
 * 民族	nation
 * 出生年月	date_of_birth
 * 最高学历	education
 * 学位授予时间	degree_granting_time
 * 最高学位	degree
 * 人员类别	personnel_category
 * 手机号码	phone_number
 * 电子邮箱	mail
 * 政治面貌	political_outlook
 * 高层次人才	high_level_talents
 * 账号编号	account_id
 * </p>
 *
 * @author 林泽鹏
 * @since 2021-11-01
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Users implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	private String userName;

	private String sex;

	private String nation;

	private LocalDateTime dateOfBirth;

	private String education;

	private LocalDateTime degreeGrantingTime;

	private String degree;

	private String personnelCategory;

	private String phoneNumber;

	private String mail;

	private String politicalOutlook;

	private Boolean highLevelTalents;

	private Integer accountId;

	public Users(String userName, String sex, String nation, LocalDateTime dateOfBirth, String education,
	             LocalDateTime degreeGrantingTime, String degree, String personnelCategory,
	             String phoneNumber, String mail, String politicalOutlook, Boolean highLevelTalents, Integer accountId) {
		this.userName = userName;
		this.sex = sex;
		this.nation = nation;
		this.dateOfBirth = dateOfBirth;
		this.education = education;
		this.degreeGrantingTime = degreeGrantingTime;
		this.degree = degree;
		this.personnelCategory = personnelCategory;
		this.phoneNumber = phoneNumber;
		this.mail = mail;
		this.politicalOutlook = politicalOutlook;
		this.highLevelTalents = highLevelTalents;
		this.accountId = accountId;
	}
}
